home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 4 / BBS in a Box - Macintosh - Volume IV (January 1992) (BBS in a Box).iso / Files / Prog / T / Terminal 2.1 Source Code.cpt / Terminal 2.01 Source / Terminal Folder / Hangup DTR.s < prev    next >
Encoding:
Text File  |  1990-12-31  |  225 b   |  15 lines  |  [TEXT/PEDT]

  1. /*
  2.     Terminal 2.0
  3.     Script to hangup using DTR line
  4.  
  5.     "Hangup DTR.s"
  6. */
  7.  
  8. main()
  9. {
  10.     setdtr(0);    /* Negate DTR: modem hangs up */
  11.     pause(60);    /* Wait one second */
  12.     setdtr(1);    /* Assert DTR: now back in command mode */
  13.     beep();
  14. }
  15.